<!DOCTYPE html>
<html>
    <head>
        <title>{{=settings.SITE.SITE_NAME}}</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <!-- Core CSS - Include with every page -->
        <link href="{{=url_for_static('sb-admin-v2/css/bootstrap.min.css')}}" rel="stylesheet">
        <link href="{{=url_for_static('sb-admin-v2/font-awesome/css/font-awesome.min.css')}}" rel="stylesheet">
        <!-- SB Admin CSS - Include with every page -->
        <link href="{{=url_for_static('sb-admin-v2/css/sb-admin.css')}}" rel="stylesheet">
        <link href="{{=url_for_static('layout.css')}}" rel="stylesheet">
        
        {{block css}}{{end}}
    </head>
    
    <body style="padding-top:50px;">
        <div class="chujue-alert"></div>
        <div id="wrapper">
            <nav class="navbar navbar-default navbar-fixed-top" role="navigation" style="margin-bottom:0;">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="index.html">{{=settings.SITE.SITE_NAME}}</a>
                </div>
                <!-- /.navbar-header -->
                
                <ul class="nav navbar-top-links navbar-right">
                    <!-- /.dropdown -->
                    <li class="dropdown">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                            <i class="fa fa-user fa-fw"></i>  <i class="fa fa-caret-down"></i>
                        </a>
                        <ul class="dropdown-menu dropdown-user">
                            <li><a href="/auth/profile"><i class="fa fa-gear fa-fw"></i> 修改信息</a>
                            </li>
                            <li class="divider"></li>
                            <li><a href="/auth/logout"><i class="fa fa-sign-out fa-fw"></i> 注销</a>
                            </li>
                        </ul>
                    </li>
                </ul>
                <!-- /.navbar-top-links -->
            </nav>
            <!-- /.navbar-static-top -->
            
            <nav class="navbar-default navbar-static-side" role="navigation">
                <div class="sidebar-collapse">
                    <ul class="nav" id="side-menu">
                        <li class="sidebar-search">
                            <div class="input-group custom-search-form">
                                <input type="text" class="form-control" placeholder="Search...">
                                <span class="input-group-btn">
                                    <button class="btn btn-default" type="button">
                                        <i class="fa fa-search"></i>
                                    </button>
                                </span>
                            </div>
                            <!-- /input-group -->
                        </li>
                        <li>
                            <a href="/admin/index"><i class="fa fa-coffee fa-fw"></i> 项目管理</a>
                        </li>
                        <li>
                            <a href="/admin/user-list"><i class="fa fa-user fa-fw"></i> 用户管理</a>
                        </li>
                        <li>
                            <a href="/admin/bug-list"><i class="fa fa-bug fa-fw"></i> BUG管理</a>
                        </li>
                        <li id="li-statistics">
                            <a href="#"><i class="fa fa-bar-chart-o fa-fw"></i> 统计信息<span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <li>
                                    <a href="/admin/project-statistics"><i class="fa fa-coffee fa-fw"></i> 按项目统计</a>
                                </li>
                                <li>
                                    <a href="/admin/user-statistics"><i class="fa fa-user fa-fw"></i> 按人员统计</a>
                                </li>
                            </ul>

                        </li>
                    </ul>
                    <!-- /#side-menu -->
                </div>
                <!-- /.sidebar-collapse -->
            </nav>
            <!-- /.navbar-static-side -->
            
            <div id="page-wrapper">
                <div class="row">
                    <div class="col-lg-12">
                        <h1 class="page-header">{{block title}}{{end}}</h1>
                    </div>
                    <!-- /.col-lg-12 -->
                </div>
                <!-- /.row -->
                {{block content}}{{end}}
            </div>
        </div>
        
        <!-- Core Scripts - Include with every page -->
        <script src="{{=url_for_static('sb-admin-v2/js/jquery-1.10.2.js')}}"></script>
        <script src="{{=url_for_static('sb-admin-v2/js/bootstrap.min.js')}}"></script>
        <script src="{{=url_for_static('sb-admin-v2/js/plugins/metisMenu/jquery.metisMenu.js')}}"></script>
        
        <!-- SB Admin Scripts - Include with every page -->
        <script src="{{=url_for_static('sb-admin-v2/js/sb-admin.js')}}"></script>

        {{block js}}{{end}}
    </body>
</html>

